

public class PLPatternBelowOf extends PLPattern {
	
	public PLPatternBelowOf(){
		super("Below");
	}
	

	public float ValidateResponse(PLShape query, PLShape response, PLOutShape outBetterMatch){
		
		//returns confidence of 1 if response line is above query line, else 0
		float conf=0;
		
		if(query.GetCenter().y<response.GetCenter().y){
			conf=1;
		}
		else{
			conf=0;
		}		

		return conf;			
		
	}			

}
